<?php
$admins_query = tep_db_query("select * from " . TABLE_ADMINISTRATORS . " where user_name = '".$admin['username']."'");
  while ($admins = tep_db_fetch_array($admins_query)) {
    if($admins['gid']=='1'){ 
      require(DIR_WS_BOXES . 'configuration.php');
      require(DIR_WS_BOXES . 'catalog.php');
      require(DIR_WS_BOXES . 'orders_product.php');
      require(DIR_WS_BOXES . 'transport.php');
      require(DIR_WS_BOXES . 'content.php');
      require(DIR_WS_BOXES . 'content_.php');
      require(DIR_WS_BOXES . 'helps.php');
      require(DIR_WS_BOXES . 'contacts.php');     
      require(DIR_WS_BOXES . 'supportonline.php');     
      require(DIR_WS_BOXES . 'modules.php');    
      require(DIR_WS_BOXES . 'customers.php');
      require(DIR_WS_BOXES . 'taxes.php');
      require(DIR_WS_BOXES . 'localization.php');
      require(DIR_WS_BOXES . 'reports.php');
      require(DIR_WS_BOXES . 'tools.php');
      //require(DIR_WS_BOXES . 'widgets.php');
      //require(DIR_WS_BOXES . 'templates.php');
      require(DIR_WS_BOXES . 'fb_config.php');
    }elseif($admins['gid']=='2'){      
      require(DIR_WS_BOXES . 'catalog.php');
      require(DIR_WS_BOXES . 'helps.php');
      require(DIR_WS_BOXES . 'contacts.php');
      //require(DIR_WS_BOXES . 'orders.php');          
      require(DIR_WS_BOXES . 'customers.php');
      require(DIR_WS_BOXES . 'taxes.php');
      require(DIR_WS_BOXES . 'localization.php');
      require(DIR_WS_BOXES . 'reports.php');
    }
      
  }
?>
